<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pm="http://primefaces.org/mobile">



<composite:interface>
	<composite:attribute name="listEntries"
		type="de.wittekind.bjs.frontend.Entry[]" />
	<composite:attribute name="title" default="" type="java.lang.String" />

</composite:interface>
<composite:implementation>

	<p:dataList type="inset" value="#{cc.attrs.listEntries}" var="entry">

		<f:facet name="header">#{cc.attrs.title}</f:facet>
		<p:outputPanel rendered="#{entry.value!=-1}">
			<p:inputText type="number" value="#{entry.value}"
				readonly="#{entry.readonly}" styleClass="#{entry.focus}" />
			<p:outputPanel>
				<h:outputText value="#{msg[entry.unit]}" />
			</p:outputPanel>
		</p:outputPanel>
		<p:outputPanel rendered="#{entry.value==-1}">
			<p:outputPanel>
				<p:inputText type="number" value="#{entry.valueMin}"
					readonly="#{entry.readonly}" styleClass="#{entry.focus}" />
				<p:outputPanel>
					<h:outputText value="#{msg.min}" />
				</p:outputPanel>
			</p:outputPanel>

			<p:outputPanel>
				<p:inputText type="number" value="#{entry.valueSec}"
					readonly="#{entry.readonly}" styleClass="#{entry.focus}" />
				<p:outputPanel>
					<h:outputText value="#{msg.sec}" />
				</p:outputPanel>
			</p:outputPanel>
		</p:outputPanel>
	</p:dataList>


</composite:implementation>
</html>
